package com.center.model;

import android.graphics.Bitmap;

import androidx.lifecycle.MutableLiveData;

import com.blankj.utilcode.util.SPStaticUtils;

import constant.AppConstants;

public class ViewModelQQLogin extends androidx.lifecycle.ViewModel {
    private MutableLiveData<Bitmap> avatarUrl;
    private MutableLiveData<String> qqName;


    private static ViewModelQQLogin instance;

    private ViewModelQQLogin() {
    }

    public static ViewModelQQLogin getInstance() {
        if (instance == null) {
            instance = new ViewModelQQLogin();
        }
        return instance;
    }

    public MutableLiveData<Bitmap> getAvatarUrl() {
        if (avatarUrl == null) {
            avatarUrl = new MutableLiveData<>();

//            avatarUrl.setValue(null);
        }
        return avatarUrl;
    }


    public MutableLiveData<String> getQQName() {
        if (qqName == null) {
            qqName = new MutableLiveData<>();
            qqName.setValue("");
        }
        return qqName;
    }


}
